package com.vivo.customer.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomerRoomMapHistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerRoomMapHistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdIsNull() {
            addCriterion("fkCustomer_id is null");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdIsNotNull() {
            addCriterion("fkCustomer_id is not null");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdEqualTo(String value) {
            addCriterion("fkCustomer_id =", value, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdNotEqualTo(String value) {
            addCriterion("fkCustomer_id <>", value, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdGreaterThan(String value) {
            addCriterion("fkCustomer_id >", value, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdGreaterThanOrEqualTo(String value) {
            addCriterion("fkCustomer_id >=", value, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdLessThan(String value) {
            addCriterion("fkCustomer_id <", value, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdLessThanOrEqualTo(String value) {
            addCriterion("fkCustomer_id <=", value, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdLike(String value) {
            addCriterion("fkCustomer_id like", value, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdNotLike(String value) {
            addCriterion("fkCustomer_id not like", value, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdIn(List<String> values) {
            addCriterion("fkCustomer_id in", values, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdNotIn(List<String> values) {
            addCriterion("fkCustomer_id not in", values, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdBetween(String value1, String value2) {
            addCriterion("fkCustomer_id between", value1, value2, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkcustomerIdNotBetween(String value1, String value2) {
            addCriterion("fkCustomer_id not between", value1, value2, "fkcustomerId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdIsNull() {
            addCriterion("fkRoom_id is null");
            return (Criteria) this;
        }

        public Criteria andFkroomIdIsNotNull() {
            addCriterion("fkRoom_id is not null");
            return (Criteria) this;
        }

        public Criteria andFkroomIdEqualTo(String value) {
            addCriterion("fkRoom_id =", value, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdNotEqualTo(String value) {
            addCriterion("fkRoom_id <>", value, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdGreaterThan(String value) {
            addCriterion("fkRoom_id >", value, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdGreaterThanOrEqualTo(String value) {
            addCriterion("fkRoom_id >=", value, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdLessThan(String value) {
            addCriterion("fkRoom_id <", value, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdLessThanOrEqualTo(String value) {
            addCriterion("fkRoom_id <=", value, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdLike(String value) {
            addCriterion("fkRoom_id like", value, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdNotLike(String value) {
            addCriterion("fkRoom_id not like", value, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdIn(List<String> values) {
            addCriterion("fkRoom_id in", values, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdNotIn(List<String> values) {
            addCriterion("fkRoom_id not in", values, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdBetween(String value1, String value2) {
            addCriterion("fkRoom_id between", value1, value2, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andFkroomIdNotBetween(String value1, String value2) {
            addCriterion("fkRoom_id not between", value1, value2, "fkroomId");
            return (Criteria) this;
        }

        public Criteria andStaLeaseIsNull() {
            addCriterion("Sta_lease is null");
            return (Criteria) this;
        }

        public Criteria andStaLeaseIsNotNull() {
            addCriterion("Sta_lease is not null");
            return (Criteria) this;
        }

        public Criteria andStaLeaseEqualTo(Date value) {
            addCriterion("Sta_lease =", value, "staLease");
            return (Criteria) this;
        }

        public Criteria andStaLeaseNotEqualTo(Date value) {
            addCriterion("Sta_lease <>", value, "staLease");
            return (Criteria) this;
        }

        public Criteria andStaLeaseGreaterThan(Date value) {
            addCriterion("Sta_lease >", value, "staLease");
            return (Criteria) this;
        }

        public Criteria andStaLeaseGreaterThanOrEqualTo(Date value) {
            addCriterion("Sta_lease >=", value, "staLease");
            return (Criteria) this;
        }

        public Criteria andStaLeaseLessThan(Date value) {
            addCriterion("Sta_lease <", value, "staLease");
            return (Criteria) this;
        }

        public Criteria andStaLeaseLessThanOrEqualTo(Date value) {
            addCriterion("Sta_lease <=", value, "staLease");
            return (Criteria) this;
        }

        public Criteria andStaLeaseIn(List<Date> values) {
            addCriterion("Sta_lease in", values, "staLease");
            return (Criteria) this;
        }

        public Criteria andStaLeaseNotIn(List<Date> values) {
            addCriterion("Sta_lease not in", values, "staLease");
            return (Criteria) this;
        }

        public Criteria andStaLeaseBetween(Date value1, Date value2) {
            addCriterion("Sta_lease between", value1, value2, "staLease");
            return (Criteria) this;
        }

        public Criteria andStaLeaseNotBetween(Date value1, Date value2) {
            addCriterion("Sta_lease not between", value1, value2, "staLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseIsNull() {
            addCriterion("End_lease is null");
            return (Criteria) this;
        }

        public Criteria andEndLeaseIsNotNull() {
            addCriterion("End_lease is not null");
            return (Criteria) this;
        }

        public Criteria andEndLeaseEqualTo(Date value) {
            addCriterion("End_lease =", value, "endLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseNotEqualTo(Date value) {
            addCriterion("End_lease <>", value, "endLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseGreaterThan(Date value) {
            addCriterion("End_lease >", value, "endLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseGreaterThanOrEqualTo(Date value) {
            addCriterion("End_lease >=", value, "endLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseLessThan(Date value) {
            addCriterion("End_lease <", value, "endLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseLessThanOrEqualTo(Date value) {
            addCriterion("End_lease <=", value, "endLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseIn(List<Date> values) {
            addCriterion("End_lease in", values, "endLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseNotIn(List<Date> values) {
            addCriterion("End_lease not in", values, "endLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseBetween(Date value1, Date value2) {
            addCriterion("End_lease between", value1, value2, "endLease");
            return (Criteria) this;
        }

        public Criteria andEndLeaseNotBetween(Date value1, Date value2) {
            addCriterion("End_lease not between", value1, value2, "endLease");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andCusIndentityIsNull() {
            addCriterion("cus_indentity is null");
            return (Criteria) this;
        }

        public Criteria andCusIndentityIsNotNull() {
            addCriterion("cus_indentity is not null");
            return (Criteria) this;
        }

        public Criteria andCusIndentityEqualTo(Integer value) {
            addCriterion("cus_indentity =", value, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andCusIndentityNotEqualTo(Integer value) {
            addCriterion("cus_indentity <>", value, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andCusIndentityGreaterThan(Integer value) {
            addCriterion("cus_indentity >", value, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andCusIndentityGreaterThanOrEqualTo(Integer value) {
            addCriterion("cus_indentity >=", value, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andCusIndentityLessThan(Integer value) {
            addCriterion("cus_indentity <", value, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andCusIndentityLessThanOrEqualTo(Integer value) {
            addCriterion("cus_indentity <=", value, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andCusIndentityIn(List<Integer> values) {
            addCriterion("cus_indentity in", values, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andCusIndentityNotIn(List<Integer> values) {
            addCriterion("cus_indentity not in", values, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andCusIndentityBetween(Integer value1, Integer value2) {
            addCriterion("cus_indentity between", value1, value2, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andCusIndentityNotBetween(Integer value1, Integer value2) {
            addCriterion("cus_indentity not between", value1, value2, "cusIndentity");
            return (Criteria) this;
        }

        public Criteria andIsvalidIsNull() {
            addCriterion("isValid is null");
            return (Criteria) this;
        }

        public Criteria andIsvalidIsNotNull() {
            addCriterion("isValid is not null");
            return (Criteria) this;
        }

        public Criteria andIsvalidEqualTo(Integer value) {
            addCriterion("isValid =", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidNotEqualTo(Integer value) {
            addCriterion("isValid <>", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidGreaterThan(Integer value) {
            addCriterion("isValid >", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidGreaterThanOrEqualTo(Integer value) {
            addCriterion("isValid >=", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidLessThan(Integer value) {
            addCriterion("isValid <", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidLessThanOrEqualTo(Integer value) {
            addCriterion("isValid <=", value, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidIn(List<Integer> values) {
            addCriterion("isValid in", values, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidNotIn(List<Integer> values) {
            addCriterion("isValid not in", values, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidBetween(Integer value1, Integer value2) {
            addCriterion("isValid between", value1, value2, "isvalid");
            return (Criteria) this;
        }

        public Criteria andIsvalidNotBetween(Integer value1, Integer value2) {
            addCriterion("isValid not between", value1, value2, "isvalid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andAddUserIsNull() {
            addCriterion("add_user is null");
            return (Criteria) this;
        }

        public Criteria andAddUserIsNotNull() {
            addCriterion("add_user is not null");
            return (Criteria) this;
        }

        public Criteria andAddUserEqualTo(String value) {
            addCriterion("add_user =", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserNotEqualTo(String value) {
            addCriterion("add_user <>", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserGreaterThan(String value) {
            addCriterion("add_user >", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserGreaterThanOrEqualTo(String value) {
            addCriterion("add_user >=", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserLessThan(String value) {
            addCriterion("add_user <", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserLessThanOrEqualTo(String value) {
            addCriterion("add_user <=", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserLike(String value) {
            addCriterion("add_user like", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserNotLike(String value) {
            addCriterion("add_user not like", value, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserIn(List<String> values) {
            addCriterion("add_user in", values, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserNotIn(List<String> values) {
            addCriterion("add_user not in", values, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserBetween(String value1, String value2) {
            addCriterion("add_user between", value1, value2, "addUser");
            return (Criteria) this;
        }

        public Criteria andAddUserNotBetween(String value1, String value2) {
            addCriterion("add_user not between", value1, value2, "addUser");
            return (Criteria) this;
        }

        public Criteria andHIdIsNull() {
            addCriterion("h_id is null");
            return (Criteria) this;
        }

        public Criteria andHIdIsNotNull() {
            addCriterion("h_id is not null");
            return (Criteria) this;
        }

        public Criteria andHIdEqualTo(String value) {
            addCriterion("h_id =", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdNotEqualTo(String value) {
            addCriterion("h_id <>", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdGreaterThan(String value) {
            addCriterion("h_id >", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdGreaterThanOrEqualTo(String value) {
            addCriterion("h_id >=", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdLessThan(String value) {
            addCriterion("h_id <", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdLessThanOrEqualTo(String value) {
            addCriterion("h_id <=", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdLike(String value) {
            addCriterion("h_id like", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdNotLike(String value) {
            addCriterion("h_id not like", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdIn(List<String> values) {
            addCriterion("h_id in", values, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdNotIn(List<String> values) {
            addCriterion("h_id not in", values, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdBetween(String value1, String value2) {
            addCriterion("h_id between", value1, value2, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdNotBetween(String value1, String value2) {
            addCriterion("h_id not between", value1, value2, "hId");
            return (Criteria) this;
        }

        public Criteria andHCreateDateIsNull() {
            addCriterion("h_create_date is null");
            return (Criteria) this;
        }

        public Criteria andHCreateDateIsNotNull() {
            addCriterion("h_create_date is not null");
            return (Criteria) this;
        }

        public Criteria andHCreateDateEqualTo(Date value) {
            addCriterion("h_create_date =", value, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHCreateDateNotEqualTo(Date value) {
            addCriterion("h_create_date <>", value, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHCreateDateGreaterThan(Date value) {
            addCriterion("h_create_date >", value, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("h_create_date >=", value, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHCreateDateLessThan(Date value) {
            addCriterion("h_create_date <", value, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("h_create_date <=", value, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHCreateDateIn(List<Date> values) {
            addCriterion("h_create_date in", values, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHCreateDateNotIn(List<Date> values) {
            addCriterion("h_create_date not in", values, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHCreateDateBetween(Date value1, Date value2) {
            addCriterion("h_create_date between", value1, value2, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("h_create_date not between", value1, value2, "hCreateDate");
            return (Criteria) this;
        }

        public Criteria andHAddUserIsNull() {
            addCriterion("h_Add_user is null");
            return (Criteria) this;
        }

        public Criteria andHAddUserIsNotNull() {
            addCriterion("h_Add_user is not null");
            return (Criteria) this;
        }

        public Criteria andHAddUserEqualTo(String value) {
            addCriterion("h_Add_user =", value, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserNotEqualTo(String value) {
            addCriterion("h_Add_user <>", value, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserGreaterThan(String value) {
            addCriterion("h_Add_user >", value, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserGreaterThanOrEqualTo(String value) {
            addCriterion("h_Add_user >=", value, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserLessThan(String value) {
            addCriterion("h_Add_user <", value, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserLessThanOrEqualTo(String value) {
            addCriterion("h_Add_user <=", value, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserLike(String value) {
            addCriterion("h_Add_user like", value, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserNotLike(String value) {
            addCriterion("h_Add_user not like", value, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserIn(List<String> values) {
            addCriterion("h_Add_user in", values, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserNotIn(List<String> values) {
            addCriterion("h_Add_user not in", values, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserBetween(String value1, String value2) {
            addCriterion("h_Add_user between", value1, value2, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHAddUserNotBetween(String value1, String value2) {
            addCriterion("h_Add_user not between", value1, value2, "hAddUser");
            return (Criteria) this;
        }

        public Criteria andHRemarksIsNull() {
            addCriterion("h_remarks is null");
            return (Criteria) this;
        }

        public Criteria andHRemarksIsNotNull() {
            addCriterion("h_remarks is not null");
            return (Criteria) this;
        }

        public Criteria andHRemarksEqualTo(String value) {
            addCriterion("h_remarks =", value, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksNotEqualTo(String value) {
            addCriterion("h_remarks <>", value, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksGreaterThan(String value) {
            addCriterion("h_remarks >", value, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("h_remarks >=", value, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksLessThan(String value) {
            addCriterion("h_remarks <", value, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksLessThanOrEqualTo(String value) {
            addCriterion("h_remarks <=", value, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksLike(String value) {
            addCriterion("h_remarks like", value, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksNotLike(String value) {
            addCriterion("h_remarks not like", value, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksIn(List<String> values) {
            addCriterion("h_remarks in", values, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksNotIn(List<String> values) {
            addCriterion("h_remarks not in", values, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksBetween(String value1, String value2) {
            addCriterion("h_remarks between", value1, value2, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHRemarksNotBetween(String value1, String value2) {
            addCriterion("h_remarks not between", value1, value2, "hRemarks");
            return (Criteria) this;
        }

        public Criteria andHStatusIsNull() {
            addCriterion("h_status is null");
            return (Criteria) this;
        }

        public Criteria andHStatusIsNotNull() {
            addCriterion("h_status is not null");
            return (Criteria) this;
        }

        public Criteria andHStatusEqualTo(String value) {
            addCriterion("h_status =", value, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusNotEqualTo(String value) {
            addCriterion("h_status <>", value, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusGreaterThan(String value) {
            addCriterion("h_status >", value, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusGreaterThanOrEqualTo(String value) {
            addCriterion("h_status >=", value, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusLessThan(String value) {
            addCriterion("h_status <", value, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusLessThanOrEqualTo(String value) {
            addCriterion("h_status <=", value, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusLike(String value) {
            addCriterion("h_status like", value, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusNotLike(String value) {
            addCriterion("h_status not like", value, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusIn(List<String> values) {
            addCriterion("h_status in", values, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusNotIn(List<String> values) {
            addCriterion("h_status not in", values, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusBetween(String value1, String value2) {
            addCriterion("h_status between", value1, value2, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHStatusNotBetween(String value1, String value2) {
            addCriterion("h_status not between", value1, value2, "hStatus");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateIsNull() {
            addCriterion("h_leave_date is null");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateIsNotNull() {
            addCriterion("h_leave_date is not null");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateEqualTo(Date value) {
            addCriterion("h_leave_date =", value, "hLeaveDate");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateNotEqualTo(Date value) {
            addCriterion("h_leave_date <>", value, "hLeaveDate");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateGreaterThan(Date value) {
            addCriterion("h_leave_date >", value, "hLeaveDate");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateGreaterThanOrEqualTo(Date value) {
            addCriterion("h_leave_date >=", value, "hLeaveDate");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateLessThan(Date value) {
            addCriterion("h_leave_date <", value, "hLeaveDate");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateLessThanOrEqualTo(Date value) {
            addCriterion("h_leave_date <=", value, "hLeaveDate");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateIn(List<Date> values) {
            addCriterion("h_leave_date in", values, "hLeaveDate");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateNotIn(List<Date> values) {
            addCriterion("h_leave_date not in", values, "hLeaveDate");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateBetween(Date value1, Date value2) {
            addCriterion("h_leave_date between", value1, value2, "hLeaveDate");
            return (Criteria) this;
        }

        public Criteria andHLeaveDateNotBetween(Date value1, Date value2) {
            addCriterion("h_leave_date not between", value1, value2, "hLeaveDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}